package ru.housewife.form;

import java.util.ArrayList;
import java.util.List;

/**
 * @author troshanin
 *         Date: 18.02.14
 */
public class PageInfo<T> {
    private final int pageNumber;
    private List<T> elements = new ArrayList<T>();

    public PageInfo(int pageNumber) {
        this.pageNumber = pageNumber;
    }

    public int getPageNumber() {
        return pageNumber;
    }

    public List<T> getElements() {
        return elements;
    }

    public void addElement(T elem) {
        elements.add(elem);
    }
}
